package smartlifev30.com.sdk.api.gateway_app;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import java.util.List;

import smartlifev30.com.sdk.api.CallBack;
import smartlifev30.com.sdk.bean.request.AddLinkageRequest;
import smartlifev30.com.sdk.bean.response.LinkageQueryResponse;
import smartlifev30.com.sdk.bean.response.LoginResponse;

/**
 * Created by tys on 2018/8/14.
 */

public interface ILinkAgemgmtGateway {

    /**
     * 查询联动信息
     * @param userName
     * @param token
     * @param sn
     * @param linkageId 长度为0是表示查询所有联动
     * @param callBack
     */
    void queryLinkage(@NonNull String userName, @NonNull String token, @NonNull String sn,
                      @Nullable List<Integer> linkageId, @NonNull CallBack<LinkageQueryResponse> callBack);


    void addLinkage(@NonNull String userName, @NonNull String token, @NonNull String sn,
                    @NonNull AddLinkageRequest.Linkage linkage, @NonNull CallBack<LoginResponse> callBack);


}
